package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_MSC_ONLINE"
 *     
*/
public class CcpMscOnline implements Serializable {

    /** identifier field */
    private String cmoGuid;

    /** nullable persistent field */
    private String userGuid;

    /** nullable persistent field */
    private String loginTime;

    /** nullable persistent field */
    private String loginIp;

    /** nullable persistent field */
    private String reserved1;

    /** nullable persistent field */
    private String reserved2;

    /** nullable persistent field */
    private String reserved3;

    /** full constructor */
    public CcpMscOnline(String cmoGuid, String userGuid, String loginTime, String loginIp, String reserved1, String reserved2, String reserved3) {
        this.cmoGuid = cmoGuid;
        this.userGuid = userGuid;
        this.loginTime = loginTime;
        this.loginIp = loginIp;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
    }

    /** default constructor */
    public CcpMscOnline() {
    }

    /** minimal constructor */
    public CcpMscOnline(String cmoGuid) {
        this.cmoGuid = cmoGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CMO_GUID"
     *         
     */
    public String getCmoGuid() {
        return this.cmoGuid;
    }

    public void setCmoGuid(String cmoGuid) {
        this.cmoGuid = cmoGuid;
    }

    /** 
     *            @hibernate.property
     *             column="USER_GUID"
     *             length="32"
     *         
     */
    public String getUserGuid() {
        return this.userGuid;
    }

    public void setUserGuid(String userGuid) {
        this.userGuid = userGuid;
    }

    /** 
     *            @hibernate.property
     *             column="LOGIN_TIME"
     *             length="18"
     *         
     */
    public String getLoginTime() {
        return this.loginTime;
    }

    public void setLoginTime(String loginTime) {
        this.loginTime = loginTime;
    }

    /** 
     *            @hibernate.property
     *             column="LOGIN_IP"
     *             length="30"
     *         
     */
    public String getLoginIp() {
        return this.loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED1"
     *             length="50"
     *         
     */
    public String getReserved1() {
        return this.reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED2"
     *             length="100"
     *         
     */
    public String getReserved2() {
        return this.reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED3"
     *             length="200"
     *         
     */
    public String getReserved3() {
        return this.reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cmoGuid", getCmoGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpMscOnline) ) return false;
        CcpMscOnline castOther = (CcpMscOnline) other;
        return new EqualsBuilder()
            .append(this.getCmoGuid(), castOther.getCmoGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCmoGuid())
            .toHashCode();
    }

}
